package cn.xxm.dongbao.user;

import cn.xxm.dongbao.user.config.db.DynamicDataSourceRegister;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication
@MapperScan("cn.xxm.dongbao.user.dao")
@Import(DynamicDataSourceRegister.class)
@EnableTransactionManagement(order = 2)
public class UserApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }

    @Override
    public void run(String... arg0) throws Exception {
    }

}
